<template>
  <div class="search-view">
    <ul>
      <li v-for="(h,i) in hotLists" :key="i">
        <div class="left">
          <div class="index" :class="[i<3 ? 'big':'']">{{i+1}}</div>
          {{h.title}}
          <img v-if="h.icon" :src="h.icon" />
        </div>
        <div class="score">{{h.score}}</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "SearchView",  
  props: ["hotLists"]
};
</script>

<style lang="scss" scoped>
.search-view {
  ul {
    width: 94vw;
    margin: 0 auto;
    background-color: #f1f1f1;
    border-radius: 20px;
    li {
      margin: 15px 0;
      padding: 15px;
      font-size: 14px;
      font-weight: 700;
      display: flex;
      justify-content: space-between;

      .left {
        display: flex;
        .index {
          color: #b3b3b3;
          margin-right: 15px;
        }
        .big {
          color: #ff6c93;
        }
      }
      img {
        width: 16px;
        height: 16px;
        margin-left: 10px;
      }

      .score {
        color: #b3b3b3;
      }
    }
  }
}
</style>